package com.scu.hotelsystem.service;

import com.scu.hotelsystem.pojo.RoomBusiness;
import com.scu.hotelsystem.util.RoomOccupyResult;
import com.scu.hotelsystem.util.search.RoomBusinessSearch;
import com.scu.hotelsystem.util.search.RoomOccupySearch;

import java.util.List;

public interface RoomBusinessService {
    public int addRoomBusiness(RoomBusiness roomBusiness);

    List<RoomBusiness> searchRoomBusinessList(RoomBusinessSearch roomBusinessSearch, int cid, int index, int limit);

    List<RoomOccupyResult> searchRoomOccupyList(RoomOccupySearch roomOccupySearch, int index, int limit);

    int deleteRoomBusiness(int[] idList);

    RoomBusiness searchRoomBusinessById(int id);

    int updateRoomBusiness(RoomBusiness roomBusiness);

    int bookToStay(int[] idList);


}
